.contact-main-section {
   background: linear-gradient(to bottom, #f8f9fa, #e9ecef); 
    padding: 4rem 1rem;
    min-height: 60vh;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-inner-section {
    display: flex;
    align-items: center; 
}

.contact-inner-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 3rem;
    width: 100%;
    align-items: center; 
    min-height: 500px; 
}

.contact-left-column {
   display: flex;
    flex-direction: column;
    gap: 1.5rem;
    order: 2; 
}

.contact-subtitle {
    margin-bottom: 0;
     text-align: left;
}

.contact-subtitle a {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    color: #9b1c0e; 
   
    
}

.contact-subtitle a:hover {
    color: #b81806; 
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #243e76; 
    margin: 0;
    line-height: 1.3;
     text-align: left;
    
}

.contact-icon-box {
   
   background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.contact-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon-box-wrapper {
   display: flex;
    align-items: flex-start;
    justify-content: flex-end; 
    gap: 1rem;
    width: 100%;
    flex-direction: row-reverse;
}

.contact-icon-box-icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: #fff; 
    background-color: #b81806; 
    width: 50px;
    height: 50px;
    border-radius: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem; 
    order: 1; 
}

.contact-icon-box-icon a {
    color: inherit;
    text-decoration: none;
}

.contact-icon-box-icon i {
    font-size: 1.3rem;
}

.contact-icon-box-content {
    flex: 1;
    order: 2; 
    text-align: left; 
}

.contact-icon-box-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b81806;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.contact-icon-box-title a {
   color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-icon-box-title a:hover {
    color: #b81806;
}

.contact-icon-box-description {
    font-size: 1rem;
    font-weight: 600;
    color: #243e76;;
    margin: 0;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

.contact-right-column {
    display: flex;
    justify-content: center;
    order: 1; 
    width: 100%;
}

.contact-image {
    width: 100%;
    max-width: 500px; 
    height: 100%; 
    min-height: 400px; 
}


.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.contact-image img:hover {
    transform: scale(1.02);
}


.contact-map-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa; 
    animation: fadeIn 1s ease-in-out; 
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.contact-map-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 500px; 
    direction: rtl; 
}
.contact-map-embed {
    width: 100%;
    height: 100%;
}
.contact-map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    transition: box-shadow 0.3s ease;
}
.contact-map-embed iframe:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 
}

.contact-form-section {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef); 
    padding: 4rem 1rem;
    position: relative;
    direction: rtl;
text-align: center;
    overflow: hidden;
}
.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05); 
    z-index: 1;
}
.contact-form-container {
    max-width: 800px; 
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.contact-form-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.contact-form-subtitle {
    margin-bottom: 0.5rem;
}
.contact-form-subtitle a {
    font-size: 1.3rem;
    font-weight: 500;
   
    color: #b81806; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-form-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #243e76; 
    margin: 0 0 2rem 0;
    line-height: 1.3;
}
.contact-form {
    width: 100%;
}
.contact-form-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 1.5rem;
    width: 100%;
}
.contact-form-field-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}
.elementor-col-50 {
    grid-column: span 1; 
}
.elementor-col-100 {
    grid-column: span 2; 
}
.contact-form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}
.contact-form-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #555;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}
.contact-form-field:focus {
    outline: none;
    border-color: #007cba; 
  
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}
.contact-form-field::placeholder {
    color: #999;
    text-align: left;
    
}
.contact-form-field-textual {
    resize: horizontal; 
}
.contact-form-submit-group {
    grid-column: span 2; 
    margin-top: 1rem;
}
.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #b81806; 
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.contact-form-submit:hover {
    background-color: #005a87; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}
.contact-form-submit-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    white-space: nowrap;
}
.contact-form-submit-icon {
    font-size: 1.1rem;
}
.contact-form-submit-icon i {
    font-size: 1.1rem;
}
.contact-form-submit-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    
    .contact-inner-container {
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
        min-height: auto; 
        align-items: stretch; 
    }
    
    .contact-left-column {
        align-items: center;
        order: 1; 
    }
    
    .contact-right-column {
        order: 2; 
    }
    
    .contact-icon-box {
        align-items: center;
        text-align: center;
    }

    .contact-icon-box-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center; 
    }
    
    .contact-icon-box-icon {
        order: 1;
        margin-top: 0;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-image {
        max-width: 400px;
        min-height: 350px;
    }

    .contact-map-container {
        height: 450px; 
    }

    .contact-form-content {
        padding: 2rem;
    }
    
    .contact-form-fields-wrapper {
        grid-template-columns: 1fr; 
    }
    .elementor-col-50,
    .elementor-col-100,
    .contact-form-submit-group {
        grid-column: span 1;
    }
    
    .contact-form-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .contact-main-section {
        padding: 3rem 1rem;
        min-height: 50vh;
    }
    
    .contact-inner-container {
        gap: 1.5rem;
    }
    
    .contact-subtitle a {
        font-size: 1.1rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-icon-box {
        padding: 1.25rem;
    }
    .contact-icon-box-wrapper {
        gap: 0.5rem;
    }
    
    .contact-icon-box-icon {
        font-size: 1.8rem;
        width: 45px;
        height: 45px;
    }
    
    .contact-icon-box-icon i {
        font-size: 1.1rem;
    }
    
    .contact-icon-box-title {
        font-size: 1rem;
    }
    .contact-icon-box-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .contact-image {
        max-width: 350px; 
        min-height: 300px;
    }
    .contact-map-section {
        margin: 0 -1rem; 
        padding: 0;
    }
    
    .contact-map-container {
        height: 400px; 
    }
    
    .contact-map-embed iframe {
        border-radius: 0; 
    }
    .contact-form-section {
        padding: 3rem 1rem;
    }
    
    .contact-form-content {
        padding: 1.75rem;
        margin: 0 -1rem; 
        border-radius: 0;
    }
    
    .contact-form-fields-wrapper {
        gap: 1rem;
    }
    
    .contact-form-field {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    .contact-form-label {
        font-size: 0.95rem;
    }
    
    .contact-form-submit {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .contact-form-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-main-section {
        padding: 2rem 0.5rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle a {
        font-size: 1rem;
    }
    
    .contact-icon-box {
        padding: 1rem;
    }
    .contact-icon-box-icon {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
    }
    
    .contact-icon-box-icon i {
        font-size: 1rem;
    }
    
    .contact-icon-box-title {
        font-size: 0.95rem;
    }
    
    .contact-icon-box-description {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 0.25rem;
    }
    .contact-image {
        max-width: 300px; 
        min-height: 250px;
    }

    .contact-map-container {
        height: 350px; 
    }
    .contact-form-section {
        padding: 2rem 0.5rem;
    }
    
    .contact-form-content {
        padding: 1.5rem;
    }
    
    .contact-form-field {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-form-label {
        font-size: 0.9rem;
    }
     .contact-form-submit {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-form-title {
        font-size: 1.8rem;
    }
    
    .contact-form-subtitle a {
        font-size: 1.1rem;
    }
}
